Skip to content

cli: show favicon and fix title on auth success page#187

Draft
jarugupj wants to merge 1 commit into
mainfrom
hypeship/cli-auth-favicon-title
Draft

cli: show favicon and fix title on auth success page#187
jarugupj wants to merge 1 commit into
mainfrom
hypeship/cli-auth-favicon-title

Conversation

@jarugupj

Copy link
Copy Markdown
Contributor

Summary

The browser page shown after kernel login (pkg/auth/success.html) had two issues, both visible in the tab:

  • No favicon — browsers fell back to the default globe icon. Embedded the Kernel favicon inline as an SVG data URI. Inlining (rather than serving /favicon.ico) avoids a race with the local callback server, which shuts down immediately after serving the page, so a follow-up request for the icon would fail.
  • Garbled title — the <title> used an em-dash that rendered as mojibake (â€") because the page declares no charset. Swapped it for a hyphen so the tab reads kernel cli - authenticated.

Test plan

  • go build ./... passes
  • Verified the embedded data URI decodes to a valid Kernel mark SVG
  • Manual: run kernel login, confirm the browser tab shows the Kernel favicon and the title reads kernel cli - authenticated (both live in browser chrome, which headless screenshots can't capture)

The browser page shown after `kernel login` had no favicon, so browsers
fell back to the default icon. Embed the Kernel favicon inline as an SVG
data URI so it renders without a follow-up request (the local callback
server stops right after serving the page).

The title used an em-dash that rendered as mojibake because the page
declares no charset. Replace it with a hyphen.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant